package cn.tedu.salary.pojo.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;


@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor

public class Salary implements Serializable {

    @ApiModelProperty(value = "编号")
    private Long id;

    @ApiModelProperty(value = "员工ID")
    private Integer staffId;

    @ApiModelProperty(value = "年月")
    private String month;
    @ApiModelProperty(value = "基本工资")
    private BigDecimal basicSalary;
    @ApiModelProperty(value = "奖金")
    private BigDecimal bonus;
    @ApiModelProperty(value = "补贴")
    private BigDecimal subsidy;
    @ApiModelProperty(value= "扣除")
    private BigDecimal deduction;
    @ApiModelProperty(value = "失业保险")
    private BigDecimal unemploymentBenefits;
    @ApiModelProperty(value = "养老保险")
    private BigDecimal oldAgePension;
    @ApiModelProperty(value = "医疗保险")
    private BigDecimal medicalInsurance;
    @ApiModelProperty(value = "公积金")
    private BigDecimal accumulationFund;
    @ApiModelProperty(value = "扣税")
    private BigDecimal individualIncomeTax;
    @ApiModelProperty(value = "工资总额")
    private BigDecimal totalSalary;
    @ApiModelProperty(value = "状态")
    private String status;
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;
    @ApiModelProperty(value = "修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;


}
